<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .d3-wrap {
            position: relative;
            width: 300px;
            height: 300px;
            margin: 120px auto;
            /* 规定如何在 3D 空间中呈现被嵌套的元素 */
            transform-style: preserve-3d;
            transform: rotateX(0) rotateY(45deg);
            transform-origin: 150px 150px 150px;
        }
        
        .rotateX {
            width: 200px;
            height: 200px;
            background-color: #06c;
            transition: transform 2s;
            animation: rotateX 6s infinite;
        }

        .box{
            width: 30px;
            height: 80px;
            background-color: aquamarine;
        }
        
        @keyframes rotateX {
            0% {
                transform: rotateX(0);
            }
            100% {
                transform: rotateX(360deg);
            } 
        }
        </style>
        <div class="d3-wrap">
            <div class="rotateX"></div>
        </div>
        <div class="box"></div>
</body>
</html>